package com.baizhiedu.yaml;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * ClassName: Account
 * Description:
 * Date: 2022/12/04 PM 7:40:15
 * <p>
 * project: spring5
 * package: com.baizhiedu.yaml
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Component
public class Account {
    @Value("${account.name}")
    private String name;

    @Value("${account.password}")
    private String password;

    //@Value("${list}")
    @Value("#{'${list}'.split(',')}")
    private List<String> list;

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
